package common

import (
	"fmt"
	"math/rand"
	"time"
)

func GetUserNumber() string {
	return "AAAA"
}

type NameTypes int8

const (
	NameType NameTypes = iota + 1
	NickNameType
)

func GenerateRandName(typ NameTypes) string {
	r := rand.New(rand.NewSource(time.Now().UnixNano()))
	ri := r.Intn(10)

	switch typ {
	case NameType:
		return "tud0-" + fmt.Sprintf("%d", ri)
	case NickNameType:
		return "tud0-nick-" + fmt.Sprintf("%d", ri)
	}

	return ""
}
